package com.zzyl.nursing.vo.member;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PropertyStatusInfoVo {
    private List<DevicePropertyVo> propertyStatusInfo;

    public List<DevicePropertyVo> getPropertyStatusInfo() {
        return propertyStatusInfo;
    }
    public void add(DevicePropertyVo propertyStatusInfo){
        if (this.propertyStatusInfo == null) {
            this.propertyStatusInfo = new ArrayList<>(); // ✅ 延迟初始化
        }
        this.propertyStatusInfo.add(propertyStatusInfo);
    }

}